package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 待遇类型表
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-22
 */
@Getter
@Setter
@Schema(name = "Treatmenttype", description = "待遇类型表")
public class Treatmenttype implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "待遇类型id")
    @TableId(value = "treatment_type_id", type = IdType.AUTO)
    private Integer treatmentTypeId;

    @NotNull
    @Schema(description = "待遇类型名")
    private String treatmentTypeName;

    @NotNull
    @Schema(description = "待遇类型对应的icon图标")
    private String treatmentTypeIcon;

    @NotNull
    @Schema(description = "待遇描述")
    private String treatmentRefer;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime destroyTime;

    @Schema(description = "假删除状态")
    private Integer tip;

    public Integer getTreatmentTypeId() {
        return treatmentTypeId;
    }

    public void setTreatmentTypeId(Integer treatmentTypeId) {
        this.treatmentTypeId = treatmentTypeId;
    }

    public String getTreatmentTypeName() {
        return treatmentTypeName;
    }

    public void setTreatmentTypeName(String treatmentTypeName) {
        this.treatmentTypeName = treatmentTypeName;
    }

    public String getTreatmentTypeIcon() {
        return treatmentTypeIcon;
    }

    public void setTreatmentTypeIcon(String treatmentTypeIcon) {
        this.treatmentTypeIcon = treatmentTypeIcon;
    }

    public String getTreatmentRefer() {
        return treatmentRefer;
    }

    public void setTreatmentRefer(String treatmentRefer) {
        this.treatmentRefer = treatmentRefer;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getDestroyTime() {
        return destroyTime;
    }

    public void setDestroyTime(LocalDateTime destroyTime) {
        this.destroyTime = destroyTime;
    }

    public Integer getTip() {
        return tip;
    }

    public void setTip(Integer tip) {
        this.tip = tip;
    }

    public Treatmenttype(String treatmentTypeName, String treatmentTypeIcon, String treatmentRefer, LocalDateTime createTime, LocalDateTime destroyTime, Integer tip) {
        this.treatmentTypeName = treatmentTypeName;
        this.treatmentTypeIcon = treatmentTypeIcon;
        this.treatmentRefer = treatmentRefer;
        this.createTime = createTime;
        this.destroyTime = destroyTime;
        this.tip = tip;
    }

    public Treatmenttype(Integer treatmentTypeId, String treatmentTypeName, String treatmentTypeIcon, String treatmentRefer, LocalDateTime createTime, LocalDateTime destroyTime, Integer tip) {
        this.treatmentTypeId = treatmentTypeId;
        this.treatmentTypeName = treatmentTypeName;
        this.treatmentTypeIcon = treatmentTypeIcon;
        this.treatmentRefer = treatmentRefer;
        this.createTime = createTime;
        this.destroyTime = destroyTime;
        this.tip = tip;
    }

    public Treatmenttype() {
    }
}
